package com.dj.mingkong.admin.biz.service.music.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dj.mingkong.admin.biz.controller.music.vo.request.MusicianFansQueryVo;
import com.dj.mingkong.admin.biz.controller.music.vo.response.MusicianFansVo;
import com.dj.mingkong.admin.biz.repository.database.music.MusicianFansRepository;
import com.dj.mingkong.admin.biz.service.music.MusicianFansService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


/**
 * 音乐人粉丝服务实现
 *
 * @author zenglonghui
 * @date: 2022/12/15 9:18
 */
@Service("musicianFansService")
public class MusicianFansServiceImpl implements MusicianFansService {
    @Resource
    private MusicianFansRepository musicianFansRepository;

    @Override
    public Page<MusicianFansVo> pageByVo(MusicianFansQueryVo queryVo) {
        return musicianFansRepository.getMapper().listPage(Page.of(queryVo.getPage(), queryVo.getPageSize()), queryVo);
    }
}
